package com.hmall.common.config.interceptors;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class MyFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        log.warn("===request: {}", template.url());
        //增加请求头
        template.header("authorization", "2222");
        template.header("test", "test_header");
    }
}
